#ifndef __WATCHPOINT_H__
#define __WATCHPOINT_H__

#include <common.h>
#define NR_WP 32
enum { BREAK, WATCH };
typedef struct watchpoint {
  int NO;
  struct watchpoint *next;

  /* TODO: Add more members if necessary */
  char str[32];
  int val;
  bool type; // 0->break, 1->watchpoint
} WP;
extern WP* head, *free_;
extern WP wp_pool[NR_WP];
WP* new_wp();
void free_wp(WP* wp);
void watchpoint_display();
void breakpoint_display();
#endif
